%@ LANGUAGE=VBScript %> <% Option Explicit %> <% ' *** Declaracion variables *** Dim ObjShw ' Almacena el objeto a mostrar Dim ObjCod ' Almacena el tipo de objeto solicitado Dim PthSrv ' Path en el servidor Dim CldSHw ' Campos que se van a mostrar Dim SQL ' Almacena la instruccion SQL Dim oConn ' Base de datos Dim rs ' Recordset Dim curDir ' Directorio de la BD ' ****************************** %> <% ObjShw = Request.Querystring("Obj") ObjCod = Left(ObjShw,2) if ObjShw <> "" then curDir = Server.MapPath(Session("sDBp")) SQL = "SELECT * FROM obras WHERE COD='"&ObjShw&"'" set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "DBQ="& curDir &";Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;" set rs = CreateObject ("ADODB.Recordset") ' Abro el recordset rs.Open SQL, oConn, 1, 2 ' ********************************************************************************************* ' CODIGO PARA CORTOS - CORTOS 3D ' ********************************************************************************************* if ObjCod = "mv" OR ObjCod = "d3" OR ObjCod = "dc" then PthSrv = rs.Fields("srvpath") %>
|
<%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") End If%> <%if ExisteFichero("movies\"&ObjShw&"_p02.gif") Then Response.Write(" ") End If%> <%if ExisteFichero("movies\"&ObjShw&"_p03.gif") Then Response.Write(" ") End If%> <%if ExisteFichero("movies\"&ObjShw&"_p04.gif") Then Response.Write(" ") End If%> <%if ExisteFichero("movies\"&ObjShw&"_p05.gif") Then Response.Write(" ") End If%> |
|
||||||||||||||||||
|
||||||||||||||||||||
|
||||||||||||||||||||
|
<%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") end if%> <%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") end if%> <%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") end if%> <%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") end if%> <%if ExisteFichero("movies\"&ObjShw&"_p01.gif") Then Response.Write(" ") end if%> |
|
||||||||||||||||||
|
||||||||||||||||||||
|
||||||||||||||||||||
|
|
|
|
||||||||||||||||||||
|
|||||||||||||||||||||
|
|||||||||||||||||||||